package com.baiyjk.droolsengine.web.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.baiyjk.droolsengine.backser.entity.Member;
import com.baiyjk.droolsengine.backser.entity.search.PageItem;
import com.baiyjk.droolsengine.backser.service.MemberService;

@Controller
@RequestMapping("/member")
public class MemberController {
	@Autowired
	private MemberService MemberService;
	
	@RequestMapping(value = "/memberList")
	public ModelAndView memberList(PageItem page) {
		ModelAndView model=new ModelAndView("member/memberList");
		List<Member> list=MemberService.getPageMember(page);
		model.addObject("memberList",list);
		return model;
	}
}
